<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link href='/pintuan/Public/Member/css/global.css' rel='stylesheet' type='text/css' />
<link href='/pintuan/Public/Member/css/main.css' rel='stylesheet' type='text/css' />
<link href='/pintuan/Public/Member/css/daterangepicker.css' rel='stylesheet' type='text/css' />
<script type='text/javascript' src='/pintuan/Public/Member/js/jquery-1.7.2.min.js'></script>
<script type='text/javascript' src='/pintuan/Public/Member/js/global.js'></script>
<script type="text/javascript" src="/pintuan/Public/Member/js/feed.js"></script>
<script type='text/javascript'>
var web_domain='/pintuan';
var static_domain='/pintuan';
var img_domain='/pintuan';
var _PUBLIC_ = '/pintuan/Public';
var _FILE_ = '<?php echo U('Index/ajaxFileUpload');?>';
var domain={
        www:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        static:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        img:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        file:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        kf:'<?php echo C('WEB_ABSOLUTE_URL');?>'
};
</script>
<!--[if lte IE 9]><script src="__PUBIC__/Member/js/jquery.watermark-1.3.js"></script><![endif]-->
<link href='/pintuan/Public/Member/css/mall.css' rel='stylesheet' type='text/css' />
<link href='/pintuan/Public/Member/css/operamasks-ui.css' rel='stylesheet' type='text/css' />
<script type='text/javascript' src='/pintuan/Public/Member/js/operamasks-ui.min.js'></script>
<script type='text/javascript' src='/pintuan/Public/Member/js/moment.min.js'></script>
<script type='text/javascript' src='/pintuan/Public/Member/js/plugin/datepicker/datepicker.js'></script>
<script type='text/javascript' src='/pintuan/Public/Member/js/daterangepicker.js'></script>
<link href='/pintuan/Public/Member/js/plugin/datepicker/datepicker.css' rel='stylesheet' type='text/css' />
<script type='text/javascript' src='/pintuan/Public/Member/js/category.js'></script>
<script type='text/javascript' src='/pintuan/Public/Member/js/coupon.js'></script>

<script language="javascript">
      $(document).ready(feed_obj.order_init); 
</script>





</head>

<body>
    <div id="iframe_page">
        <div class="iframe_content">
            <div class="r_nav">
                <ul>
                  <li class="<?php if((ACTION_NAME) == "config"): ?>cur<?php endif; ?>"><a href="<?php echo U('Merchant/merchant');?>">商家列表</a></li>
	              <li class="<?php if((ACTION_NAME) == "classify"): ?>cur<?php endif; ?>"><a href="<?php echo U('Merchant/category');?>">商家分类</a></li>
	              <li class="<?php if((ACTION_NAME) == "index"): ?>cur<?php endif; ?>"><a href="<?php echo U('Merchant/review');?>">商家点评</a></li>
	              <li class="<?php if((ACTION_NAME) == "news_add"): ?>cur<?php endif; ?>"><a href="<?php echo U('Merchant/apply');?>">入驻申请</a></li>
               </ul>
            </div>
            

<div id="news" class="r_con_wrap">
		<div class="control_btn">
	 		<a href="<?php echo U('add_product');?>" class="btn_green btn_w_120">添加商品</a>    
		</div>
        <form class="r_con_search_form" id="search_form" action="<?php echo U('Merchant/merchant');?>" method="post">
			时间：<input name="Time" value="<?php echo ($time); ?>" type="text" class="form_input" size="20" readonly="readonly">
			关键字：<input name="Keyword" value="<?php echo ($keyword); ?>" type="text" class="form_input" size="15" >
			<input type="submit" class="search_btn" id="search_btn" value="搜索">
			<a href="<?php echo U('Merchant/productExport');?>"><input type="button" class="search_btn" id="export_btn" value="导出"></a>
		</form> 
        
        <table border="0" cellpadding="5" cellspacing="0" class="r_con_table">
            <thead>
                <tr>
                    <td width="10%" nowrap="nowrap">序号</td>
                    <td width="15%" nowrap="nowrap">商品名称</td>
                    <td width="10%" nowrap="nowrap">封面图</td>
                    <td width="15%" nowrap="nowrap">市场价</td>
                    <td width="10%" nowrap="nowrap">最低价</td>
                    <td width="10%" nowrap="nowrap">发布状态</td>
                    <td width="10%" nowrap="nowrap" class="last">操作</td>
                </tr>
            </thead>
            <tbody>
                <?php if(is_array($productlist)): foreach($productlist as $k=>$v): ?><tr >
                    <td nowrap="nowrap"><?php echo ($k+1); ?></td>
                    <td nowrap="nowrap"><?php echo ($v["name"]); ?></td>
                    <td nowrap="nowrap"><img src="<?php echo ($v["coverimg"]); ?>" width="50" height="50"></td>
                    <td nowrap="nowrap"><?php echo ($v["oriprice"]); ?></td>
                  	<td nowrap="nowrap"><?php echo ($v["lowestprice"]); ?></td>
                     <td nowrap="nowrap">
                     	<?php if($v["ispublish"] == 0): ?>未发布
                     	<?php else: ?>
                     	已发布<?php endif; ?>
                     </td>
                    <td class="last" nowrap="nowrap">
                        <a href="<?php echo U('shopdetail',array('id'=>$v['id']));?>"><img src="/pintuan/Public/Member/images/ico/mod.gif" align="absmiddle" alt="修改"  title="修改"/></a>
                         <?php if($v["ispublish"] == 0): ?><a href="<?php echo U('shopStop',array('id'=>$v['id']));?>"><img src="/pintuan/Public/Member/images/ico/duigou.png" align="absmiddle" alt="发布"  title="发布"/></a><?php else: ?><a href="<?php echo U('shopNStop',array('id'=>$v['id']));?>"><img src="/pintuan/Public/Member/images/ico/cancel.png" align="absmiddle" alt="取消发布"  title="取消发布"/></a><?php endif; ?>
                        <a href="<?php echo U('merchantDel',array('id'=>$v['id']));?>" title="删除" onClick="if(!confirm('删除后不可恢复，继续吗？')){return false};"><img src="/pintuan/Public/Member/images/ico/del.gif" align="absmiddle" /></a>
                    </td>
                </tr><?php endforeach; endif; ?>
            </tbody>
        </table>
        <div class="blank20"></div>
        <div id="turn_page"><?php echo ($page); ?></div>
    </div>  

    
         </div>
	</div>
</body>
</html>